package com.example.course.controller.user;

import com.example.course.dto.user.UserScoresListDto;
import com.example.course.service.ScoresService;
import com.example.course.utils.common.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/user/scores")
public class ScoresController {

    @Autowired
    private ScoresService scoresService;

    @GetMapping("/get_user_scores_list")
    public Result getUserScores(@RequestParam(value = "semesterId",required = false)Long semesterId){
        return scoresService.getUserScores(semesterId);
    }

}
